package com.boss.example.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Hu_liantian
 * @date 2020/8/5
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonResult<T> {

    private Integer code;

    private String message;

    private T data;//泛型数据

    public CommonResult(Integer code, String message) {
        this(code, message, null);
    }

}
